package com.coursesystem.dao;

import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

@Repository
public class HbnuNewsDAO {
    private static final String HASH_NAME = "rc_hbnu_news";

    private Map<String,String> map=new HashMap<>();

    public void addNews(String title, String body) {
        map.put(title,body);
    }


    public Map<String, String> getAllNews() {
        return map;
    }

    public void clear() {
        map.clear();
    }
}
